#include "HttpServer.hpp"
#include <memory>
#include <string>

void Usage(char* process)
{
    std::cout << "Usage: " << process << " + port" << std::endl;
}

int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(10);
    }

    uint16_t port = std::stoi(argv[1]);
    std::unique_ptr<HttpServer> svr(new HttpServer(port));

    svr->Init();
    svr->Start();

    return 0;
}